package com.ysh.gsm;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@IdClass(CdrDePK.class)
@Entity()
@Table(name = "cdr_mr_nc_2g3g")

public class CdrMrGs implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -205967837683743481L;
	
	private Callleg callLeg;
	private int cellId;
	private short sequence;
	private int startTime;	
	private short startTimeExt;	
	private TimeDimension timeDimension;
	private short bcch;
	private byte bsic;
	private int rssi;
	
	@Id
	public Callleg getCallLeg() {
		return callLeg;
	}
	@Id
	public short getSequence() {
		return sequence;
	}
	@Column(name = "cell_id", nullable = false)
	public int getCellId() {
		return cellId;
	}
	@Column(name = "start_time", nullable = false)
	public int getStartTime() {
		return startTime;
	}
	@Column(name = "start_time_ext" , nullable = false)
	public short getStartTimeExt() {
		return startTimeExt;
	}
	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "time_key", referencedColumnName = "time_key",nullable = false)
	public TimeDimension getTimeDimension() {
		return timeDimension;
	}
	@Column(name = "gsm_nc_bcchno" )
	public short getBcch() {
		return bcch;
	}
	@Column(name = "gsm_nc_bsic" )
	public byte getBsic() {
		return bsic;
	}
	@Column(name = "gsm_nc_rssi" )
	public int getRssi() {
		return rssi;
	}
	public void setCallLeg(Callleg callLeg) {
		this.callLeg = callLeg;
	}
	public void setCellId(int cellId) {
		this.cellId = cellId;
	}
	public void setSequence(short sequence) {
		this.sequence = sequence;
	}
	public void setStartTime(int startTime) {
		this.startTime = startTime;
	}
	public void setStartTimeExt(short startTimeExt) {
		this.startTimeExt = startTimeExt;
	}
	public void setTimeDimension(TimeDimension timeDimension) {
		this.timeDimension = timeDimension;
	}
	public void setBcch(short bcch) {
		this.bcch = bcch;
	}
	public void setBsic(byte bsic) {
		this.bsic = bsic;
	}
	public void setRssi(int rssi) {
		this.rssi = rssi;
	}
	


}
